package com.wyj.wuliwuli.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 用户点赞
 */
@Data
@Entity
@Table(name = "wuli_user_video_like")
public class WuliUserVideoLike extends BaseEntity {


    @ManyToOne
    @JoinColumn(name = "wuli_user_id", columnDefinition = "bigint(20) COMMENT '用户ID'")
    private WuliUser user;

    @ManyToOne
    @JoinColumn(name = "wuli_video_id", columnDefinition = "bigint(20) COMMENT '视频ID'")
    private WuliVideo video;

}
